<admintpl file="header" />


<link href="__TMPL__Public/assets/css/infomation.css" rel="stylesheet" />
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('ServiceReview/index')}">服务款审批报审表管理</a></li>
            <li class="active"><a href="{:U('ServiceReview/add')}">新增服务款审批报审</a></li>
        </ul>
        <section class="tab-pane active fade in" id="access">
            <div class="row">
                <div class="col-xs-12 col-md-12 col-lg-12">
                    <div class="panel panel-info">
                        <div class="panel-body">
                            <form method="post" class="form-horizontal " action="{:U('ServiceReview/add_post')}">
                                <input type="hidden" name="audit_level" value="2" >
                                <input type="hidden" name="report_type" value="2" >
                                <input type="hidden" name="audit_status" value="1" />
                                <div class="row tg-header">
                                    <div class="col-md-12 text-center">
                                        <h3>服务类进度款支付报审表</h3>
                                        <hr />
                                    </div>
                                    <div class="col-md-12">
                                        <p class="tg-to"><label>工程名称:</label><input type="text" class="input-xt input-deptname" value="{$job_name}" readonly/></p>
                                        <p class="pull-right tg-serialnum"><label>编号:</label><input class="input-xt" name="code" required/></p>
                                    </div>
                                </div>

                                <table class="table table-bordered">
                                    <tr>
                                        <td style="border-right:none !important;">
                                            <p>
                                                <label>致：</label><!-- <input type="text" class="input-xt input-deptname"  name="supervisory_department"/> -->
                                                <select name="supervisory_department">
                                                    <volist name="depts" id="vo">
                                                        <option id="{$vo.id}">{$vo.department_name}</option>
                                                    </volist>
                                                </select>
                                                （项目监理、代建、建设机构）:
                                            </p>
                                            <p class="indent20">
                                                我方已完成<input type="text" class="input-xt input-longname" name="job_content" required/>工作，该本次费用为：<input type="text" class="input-xt input-yuan" name="list_pricing" required/>元。按合同约定，扣除预付款的<input type="text" class="input-xt input-num" name="deducts_prepayment_percent" required/>%为<input type="text" class="input-xt input-yuan" name="deducts_prepayment" required/>，建设单位应支付该进度款<input type="text" id="amount" class="input-xt input-yuan" name="payables" required/>元（大写）<input type="text" id="amount_in_words" class="input-xt input-deptname" name="amount_in_words" required/>，现将有关资料报上，请予以审核。
                                            </p>
                                            <p></p>
                                            <p>
                                                <label>附件:</label>
                                                <div class="controls">
                                                    <a class="btn upBtn btn-primary" href="javascript:void(0);">上传</a>
                                                    <input type="file" id="upFile" name="upFile" style="display:none" />
                                                </div>
                                            </p>
                                            <div class="signature">
                                                <p>
                                                    服务单位（盖章）
                                                </p>
                                                <p>
                                                    项目经理（签字)
                                                </p>
                                                <p>
		                                            <input type="text" class="js-date input-xt input-date" name="publish_time" value="<php>echo date('Y-m-d');</php>" required />
		                                        </p>
                                            </div> 
                                        </td>
                                    </tr>
                                </table>
                                <div class="form-actions">
                                    <button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
                                    <a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
                                </div>
                            </form>                   
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
    <script src="__TMPL__Public/assets/js/convertCurrency.js"></script>
    <script type="text/javascript">
		$(document).ready(function(e) {
            $("#amount").keyup(function(){
                    var val=$("#amount").val();
                    var word=atoc(val);
                    $("#amount_in_words").val(word);
                });
			window.obj = '';
			// 选择图片
			$(document).on("click", ".upBtn", function(e) {
				window.obj = $(this);
				$("#upFile").click();
			});
			// 文件选择器change事件
			$("#upFile").on("change", function(){
				UploadFile("{:U('ServiceReview/upload')}", "service_review");
			});
            $(document).on("click", ".delFile", function(){
                if($(this).attr("value") != undefined){
                    delFile("{:U('SupervisionPlan/delFile')}", $(this).attr("value"), $(this))
                } else {
                    $(this).closest("div").remove();
                }
            });
		});
	</script>
</body>
</html>